//
//  Service+Activity.h
//  CarService
//
//  Created by fengyn on 15/6/23.
//  Copyright (c) 2015年 lexingsoft. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "ServiceManager.h"
@interface ServiceManager(Activity)


///查询每日一篇
+ (void)getAllNewsWithPageIndex:(NSUInteger)pageIndex businessType:(NSString *)businessType success:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;

///查询所有资讯(分页)
+ (void)getAllNewsWithPageIndex:(NSUInteger)pageIndex success:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;

///根据ID获取资讯的详细信息
+ (void)getNewsDetailWithId:(NSString *)newsId success:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;

///对资讯点赞
+ (void)upvoteNewsWithId:(NSString *)newsId success:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;

///是否已对资讯点过赞
+ (BOOL)isUpvotedNewsWithID:(NSString *)newsId;

///查询所有活动(分页)
+ (void)getAllActivitysWithPageIndex:(NSUInteger)pageIndex success:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;

///根据ID获取活动的详细信息
+ (void)getActivityDetailWithId:(NSString *)newsId success:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;

///活动报名
+ (void)signupActivityWithId:(NSString *)newsId success:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;

///活动感兴趣
+ (void)interestActivityWithId:(NSString *)newsId success:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;

///是否已对活动感兴趣过
+ (BOOL)isInteresedActivityWithId:(NSString *)newsId;

///获取中奖信息
+ (void)getWinningInfoWithSuccess:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;

///获取具体中了几等奖
+ (void)getWinningResultsWithSuccess:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;

///测试资讯
+ (void)postActivityWithPageIndex:(NSUInteger)pageIndex success:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;
///广告页
+ (void)postBannerWithSuccess:(void(^)(NSDictionary*data)) success failure:(void(^)(NSDictionary*data))failure;
///测试资讯详情
+ (void)postActivityDetailsWithString:(NSString*)Id success:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;

///测试功能栏
+ (void)getFunctionalClassificationWithSuccess:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;

@end
